package com.itheima.domain;

import java.util.ArrayList;
import java.util.List;

public class Classes {
    private int cid;
    private String cname;

    private List<Student> stuList = new ArrayList<>();

    @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", stuList=" + stuList +
                '}';
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public List<Student> getList() {
        return stuList;
    }

    public void setList(List<Student> list) {
        this.stuList = list;
    }

    public Classes() {
    }

    public Classes(int cid, String cname, List<Student> list) {
        this.cid = cid;
        this.cname = cname;
        this.stuList = list;
    }
}
